﻿using System;

	public  class ViewCustomerDetailsBO
    {
		public ViewCustomerDetailsBO(string accountId)
		{
			AccountId = accountId;
		}
        private long   _phoneNumber;
        private long _pinCode;
        private string _addressId;
		private string _addressLine1;
		private string _addressLine2;
		private string _addressLine3;
		private string _city;
		private string _acountId;
		private string _customerName;
		private string _branch;
		private decimal _amount;
		private DateTime _accountCreatedDate;
		private string _imagePath;

        public long PhoneNumber
        {
            get { return _phoneNumber; }
            set { _phoneNumber = value; }
        }

        public long PinCode
        {
            get { return _pinCode; }
            set { _pinCode = value; }
        }

        public string AddressId
        {
            get { return _addressId; }
            set { _addressId = value; }
        }
       

        public string City
        {
            get { return _city; }
            set { _city = value; }
        }

        public string AddressLine3
        {
            get { return _addressLine3; }
            set { _addressLine3 = value; }
        }

        public string AddressLine2
        {
            get { return _addressLine2; }
            set { _addressLine2 = value; }
        }

        public string AddressLine1
        {
            get { return _addressLine1; }
            set { _addressLine1 = value; }
        }
        

        public string CustomerName
        {
            get { return _customerName; }
            set { _customerName = value; }
        }
        

		public string AccountId
		{
			get { return _acountId; }
			private set { _acountId = value; }
		}
       

        public string Branch
        {
            get { return _branch; }
            set { _branch = value; }
        }
       

        public decimal Amount
        {
            get { return _amount; }
            set { _amount = value; }
        }
        

        public DateTime AccountCreatedDate
        {
            get { return _accountCreatedDate; }
            set { _accountCreatedDate = value; }
        }
        

        public string ImagePath
        {
            get { return _imagePath; }
            set { _imagePath = value; }
        }

    
       ViewCustomerDetailsDAL _viewCustomerDetailsDal = new ViewCustomerDetailsDAL();

	   public void RetriveDetails()
       {
		   try
           {

				_viewCustomerDetailsDal.RetrieveAccountDetails(this);

           }

           catch
           {

               throw;

           }

           finally
           {

               _viewCustomerDetailsDal = null;

           }

       }
    }

